package p_cglib;

public class App {
   public static void main(String[] args) {
	//目标对象
	   UserDao target=new UserDao();
	   System.out.println(target.getClass());
	   //代理
	   UserDao proxy=(UserDao) new UserDaoProxy(target).getProxyInstance();
	   //UserDao子类：class p_cglib.UserDao$$EnhancerByCGLIB$$45734b51
	   System.out.println(proxy.getClass());
	   proxy.save();//执行的是代理的方法
	   
}
}
